package br.com.monitor.testesDeUnidade;

import br.com.monitor.modelos.CalculaIndices;

import org.junit.Before;
import org.junit.Assert;
import org.junit.Test;

	
public class TesteCalculadora {

        
        @Test
        public void testaExcecoes() {
                
                try {
                        CalculaIndices.calculaIMC(null);
                        Assert.fail();
                } catch (Exception e) {
                        System.out.println(e.getMessage());
                        
                }
                
                try {
                        CalculaIndices.porcentagemGorduraComAdipometro(null);
                        Assert.fail();
                        
                } catch (Exception e) {
                        System.out.println(e.getMessage());
                }
                try {
                        CalculaIndices.calculaPesoMagro(null);
                        Assert.fail();
                        
                } catch (Exception e) {
                        System.out.println(e.getMessage());
                }
                try {
                	 CalculaIndices.calculaPesoGordo(null);
                        Assert.fail();
                        
                } catch (Exception e) {
                        System.out.println(e.getMessage());
                }
                
                
        }

}
